<?php
class Form_Usuario extends Zend_Form{
	
	//public function __construct($options = null){
		//parent::__construct($options);
	public function init(){	
		$this->setName('usuario');
		$usuario = new Zend_Form_Element_Text('username');
		$usuario	->setLabel('Nombre')
					->addFilter('StripTags')
					->addFilter('StringTrim')
					->setRequired(true);
		
		$pass = new Zend_Form_Element_Password('password');
		$pass	->setLabel('password')
				->addFilter('StripTags')
				->addFilter('StringTrim')
				->setRequired(true);
		
		$submit = new Zend_Form_Element_Submit('submit');
		
		$this->addElements(array($usuario,$pass,$submit));
		
	}
}